.class Lcom/example/inshopbuy/ConsumeInShop$7;
.super Ljava/lang/Object;
.source "ConsumeInShop.java"

# interfaces
.implements Landroid/text/TextWatcher;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/inshopbuy/ConsumeInShop;->setoncliclister()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/inshopbuy/ConsumeInShop;


# direct methods
.method constructor <init>(Lcom/example/inshopbuy/ConsumeInShop;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/inshopbuy/ConsumeInShop$7;->this$0:Lcom/example/inshopbuy/ConsumeInShop;

    .line 807
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public afterTextChanged(Landroid/text/Editable;)V
    .locals 8
    .param p1, "arg0"    # Landroid/text/Editable;

    .prologue
    const v7, 0x7f020035

    .line 817
    invoke-interface {p1}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v2

    .line 818
    .local v2, "value":Ljava/lang/String;
    const-string v3, "[0-9,.]*"

    invoke-static {v3}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;

    move-result-object v1

    .line 819
    .local v1, "pattern":Ljava/util/regex/Pattern;
    invoke-virtual {v1, v2}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;

    move-result-object v0

    .line 820
    .local v0, "isNum":Ljava/util/regex/Matcher;
    invoke-virtual {v0}, Ljava/util/regex/Matcher;->matches()Z

    move-result v3

    if-nez v3, :cond_1

    .line 821
    iget-object v3, p0, Lcom/example/inshopbuy/ConsumeInShop$7;->this$0:Lcom/example/inshopbuy/ConsumeInShop;

    # getter for: Lcom/example/inshopbuy/ConsumeInShop;->context:Landroid/content/Context;
    invoke-static {v3}, Lcom/example/inshopbuy/ConsumeInShop;->access$1(Lcom/example/inshopbuy/ConsumeInShop;)Landroid/content/Context;

    move-result-object v3

    const-string v4, "\u63d0\u793a\u4fe1\u606f"

    const-string v5, "\u6d88\u8d39\u91d1\u989d\u586b\u5199\u6709\u8bef"

    invoke-static {v3, v4, v5}, Lmyapp/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 851
    :cond_0
    :goto_0
    return-void

    .line 825
    :cond_1
    invoke-interface {p1}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v3

    if-gtz v3, :cond_2

    .line 826
    iget-object v3, p0, Lcom/example/inshopbuy/ConsumeInShop$7;->this$0:Lcom/example/inshopbuy/ConsumeInShop;

    # getter for: Lcom/example/inshopbuy/ConsumeInShop;->true_money:Landroid/widget/TextView;
    invoke-static {v3}, Lcom/example/inshopbuy/ConsumeInShop;->access$26(Lcom/example/inshopbuy/ConsumeInShop;)Landroid/widget/TextView;

    move-result-object v3

    const-string v4, "0"

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 831
    :cond_2
    iget-object v3, p0, Lcom/example/inshopbuy/ConsumeInShop$7;->this$0:Lcom/example/inshopbuy/ConsumeInShop;

    # getter for: Lcom/example/inshopbuy/ConsumeInShop;->true_money:Landroid/widget/TextView;
    invoke-static {v3}, Lcom/example/inshopbuy/ConsumeInShop;->access$26(Lcom/example/inshopbuy/ConsumeInShop;)Landroid/widget/TextView;

    move-result-object v3

    iget-object v4, p0, Lcom/example/inshopbuy/ConsumeInShop$7;->this$0:Lcom/example/inshopbuy/ConsumeInShop;

    invoke-interface {p1}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v5

    iget-object v6, p0, Lcom/example/inshopbuy/ConsumeInShop$7;->this$0:Lcom/example/inshopbuy/ConsumeInShop;

    # getter for: Lcom/example/inshopbuy/ConsumeInShop;->consumBean:Lcom/example/inshopbuy/ConsumBean;
    invoke-static {v6}, Lcom/example/inshopbuy/ConsumeInShop;->access$21(Lcom/example/inshopbuy/ConsumeInShop;)Lcom/example/inshopbuy/ConsumBean;

    move-result-object v6

    # invokes: Lcom/example/inshopbuy/ConsumeInShop;->youhuimake(Ljava/lang/String;Lcom/example/inshopbuy/ConsumBean;)Ljava/lang/String;
    invoke-static {v4, v5, v6}, Lcom/example/inshopbuy/ConsumeInShop;->access$38(Lcom/example/inshopbuy/ConsumeInShop;Ljava/lang/String;Lcom/example/inshopbuy/ConsumBean;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 834
    iget-object v3, p0, Lcom/example/inshopbuy/ConsumeInShop$7;->this$0:Lcom/example/inshopbuy/ConsumeInShop;

    # getter for: Lcom/example/inshopbuy/ConsumeInShop;->true_money:Landroid/widget/TextView;
    invoke-static {v3}, Lcom/example/inshopbuy/ConsumeInShop;->access$26(Lcom/example/inshopbuy/ConsumeInShop;)Landroid/widget/TextView;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v3

    invoke-interface {v3}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v3

    const-string v4, "%"

    const-string v5, ""

    invoke-virtual {v3, v4, v5}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v3

    const-string v4, " "

    const-string v5, ""

    invoke-virtual {v3, v4, v5}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Float;->floatValue()F

    move-result v3

    iget-object v4, p0, Lcom/example/inshopbuy/ConsumeInShop$7;->this$0:Lcom/example/inshopbuy/ConsumeInShop;

    # getter for: Lcom/example/inshopbuy/ConsumeInShop;->yucost:Ljava/lang/String;
    invoke-static {v4}, Lcom/example/inshopbuy/ConsumeInShop;->access$11(Lcom/example/inshopbuy/ConsumeInShop;)Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Float;->floatValue()F

    move-result v4

    cmpl-float v3, v3, v4

    if-lez v3, :cond_3

    .line 835
    iget-object v3, p0, Lcom/example/inshopbuy/ConsumeInShop$7;->this$0:Lcom/example/inshopbuy/ConsumeInShop;

    # getter for: Lcom/example/inshopbuy/ConsumeInShop;->yucostpay:Landroid/widget/LinearLayout;
    invoke-static {v3}, Lcom/example/inshopbuy/ConsumeInShop;->access$20(Lcom/example/inshopbuy/ConsumeInShop;)Landroid/widget/LinearLayout;

    move-result-object v3

    const/16 v4, 0x8

    invoke-virtual {v3, v4}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 837
    iget-object v3, p0, Lcom/example/inshopbuy/ConsumeInShop$7;->this$0:Lcom/example/inshopbuy/ConsumeInShop;

    # getter for: Lcom/example/inshopbuy/ConsumeInShop;->choice_pay_name:Ljava/lang/String;
    invoke-static {v3}, Lcom/example/inshopbuy/ConsumeInShop;->access$31(Lcom/example/inshopbuy/ConsumeInShop;)Ljava/lang/String;

    move-result-object v3

    const-string v4, "yucost"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 839
    iget-object v3, p0, Lcom/example/inshopbuy/ConsumeInShop$7;->this$0:Lcom/example/inshopbuy/ConsumeInShop;

    # getter for: Lcom/example/inshopbuy/ConsumeInShop;->weixin_choose_icon:Landroid/widget/ImageView;
    invoke-static {v3}, Lcom/example/inshopbuy/ConsumeInShop;->access$4(Lcom/example/inshopbuy/ConsumeInShop;)Landroid/widget/ImageView;

    move-result-object v3

    invoke-virtual {v3, v7}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 840
    iget-object v3, p0, Lcom/example/inshopbuy/ConsumeInShop$7;->this$0:Lcom/example/inshopbuy/ConsumeInShop;

    # getter for: Lcom/example/inshopbuy/ConsumeInShop;->alipay_choose_icon:Landroid/widget/ImageView;
    invoke-static {v3}, Lcom/example/inshopbuy/ConsumeInShop;->access$5(Lcom/example/inshopbuy/ConsumeInShop;)Landroid/widget/ImageView;

    move-result-object v3

    invoke-virtual {v3, v7}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 841
    iget-object v3, p0, Lcom/example/inshopbuy/ConsumeInShop$7;->this$0:Lcom/example/inshopbuy/ConsumeInShop;

    # getter for: Lcom/example/inshopbuy/ConsumeInShop;->yucost_choose_icon:Landroid/widget/ImageView;
    invoke-static {v3}, Lcom/example/inshopbuy/ConsumeInShop;->access$6(Lcom/example/inshopbuy/ConsumeInShop;)Landroid/widget/ImageView;

    move-result-object v3

    invoke-virtual {v3, v7}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 843
    iget-object v3, p0, Lcom/example/inshopbuy/ConsumeInShop$7;->this$0:Lcom/example/inshopbuy/ConsumeInShop;

    const-string v4, ""

    invoke-static {v3, v4}, Lcom/example/inshopbuy/ConsumeInShop;->access$7(Lcom/example/inshopbuy/ConsumeInShop;Ljava/lang/String;)V

    goto/16 :goto_0

    .line 848
    :cond_3
    iget-object v3, p0, Lcom/example/inshopbuy/ConsumeInShop$7;->this$0:Lcom/example/inshopbuy/ConsumeInShop;

    # getter for: Lcom/example/inshopbuy/ConsumeInShop;->yucostpay:Landroid/widget/LinearLayout;
    invoke-static {v3}, Lcom/example/inshopbuy/ConsumeInShop;->access$20(Lcom/example/inshopbuy/ConsumeInShop;)Landroid/widget/LinearLayout;

    move-result-object v3

    const/4 v4, 0x0

    invoke-virtual {v3, v4}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto/16 :goto_0
.end method

.method public beforeTextChanged(Ljava/lang/CharSequence;III)V
    .locals 0
    .param p1, "arg0"    # Ljava/lang/CharSequence;
    .param p2, "arg1"    # I
    .param p3, "arg2"    # I
    .param p4, "arg3"    # I

    .prologue
    .line 813
    return-void
.end method

.method public onTextChanged(Ljava/lang/CharSequence;III)V
    .locals 0
    .param p1, "arg0"    # Ljava/lang/CharSequence;
    .param p2, "arg1"    # I
    .param p3, "arg2"    # I
    .param p4, "arg3"    # I

    .prologue
    .line 811
    return-void
.end method
